﻿using UnityEngine;
using System.Collections;

public class SetParticleSortingLayer : MonoBehaviour
{
    public string sortingLayerName;      // 粒子系统应设置的排序层名称

    void Start()
    {
        // 设置粒子系统的排序层
        GetComponent<ParticleSystem>().GetComponent<Renderer>().sortingLayerName = sortingLayerName;
    }
}